﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;
using CodeFarmer.Core;

namespace CodeFarmer.Controller
{
    public class BaseController : System.Web.Mvc.Controller
    {

        #region 公共属性
        /// <summary>
        /// 页面索引
        /// </summary>
        protected int PageIndex
        {
            get
            {
                    return Request["pi"].ToInt32(1);
            }
        }

        /// <summary>
        /// 页面大小
        /// </summary>
        protected int PageSize
        {
            get
            {
                    return Request["ps"].ToInt32(10);
            }
        }
        #endregion

    }
}
